package org.tlipoca.smarticle.client;

import org.genntii.smcommon.result.Result;
import org.genntii.smdomain.entity.UserSubscribe;
import org.genntii.smdomain.vo.SubscribeNumVO;
import org.genntii.smdomain.vo.UserSubScribeClientVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.ArrayList;

@FeignClient("sm-userSubscribe")
public interface UserSubScribeClient {

    @GetMapping("/user_subscribe/subscribeNum")
    Result<SubscribeNumVO> getSubscribeNum(@RequestParam("userId") Long userId);

    @GetMapping("/user_subscribe/article/subscribeChannel")
    Result<ArrayList<UserSubScribeClientVO>> subscribe8c(@RequestParam("userId") Long userId);

    @GetMapping("user_subscribe/article/subscribeUser")
    Result<ArrayList<UserSubScribeClientVO>> subscribe8u(@RequestParam("userId")Long userId);

    @GetMapping("/user_subscribe/subscribed")
    Result<Byte> userSubscribed(@RequestParam("type")Byte type, @RequestParam("targetId")Long targetId, @RequestParam("userId")Long userId);

}
